package com.hz.interfaces.user.inf;

import java.util.List;

import com.hz.base.beans.vo.CommonResult;
import com.hz.base.beans.vo.PageEntity;
import com.hz.base.beans.vo.QueryParams;
import com.hz.beans.user.entity.PRole;

/**
 * IPRoleService
 * @author liul
 * @since [0.0.1]
 * @version [0.0.1,2018年07月24日]
 */
public interface IPRoleInterface {

	CommonResult<PRole> addPRole(PRole pRole);

	CommonResult<List<PRole>> queryPRoleList(QueryParams<PRole> queryParams);

	CommonResult<PRole> queryPRole(Long id);

	CommonResult<PRole> updatePRole(PRole pRole);

	CommonResult<Object> deletePRoleArray(Long[] ids);

	CommonResult<PageEntity> queryForPage(QueryParams<PRole> queryParams);
	
	CommonResult<PRole> insertSelective(PRole pRole);
	
	CommonResult<Object> deleteByList(List<PRole> pRoleList);
	
	CommonResult<List<PRole>> batchUpdate(List<PRole> pRoleList);
	
	CommonResult<List<PRole>> batchSave(List<PRole> pRoleList);
	
}
